package protocol;

public interface OnNewMessageListener {

	public int messageSize = 128;
	
	/**
	 * When a message arrives to the PairedConnection this method is called.
	 * @param message The message that has arrived.
	 * @return true to continue receiving messages, false to close the threads.
	 */
	public int onNewMessage(String message);
	public void getPairedConnection(PairedConnection connection);
	public void onCloseConnection();
	
}
